import http from '../utils/http'
// 
/**
 *  @parms resquest 请求地址 例如：http://197.82.15.15:8088/request/...
 *  @param '/testIp'代表vue-cil中config，index.js中配置的代理
 */
let resquest = "/request"


export default{
    postOrderInfo(data){
        return http.post("/order/postOrderInfo",data)
    },
    listProducts(){
        return http.get("/product/listProducts","")
    },
    loginStateUpdate(){
        const data={'token':localStorage.getItem("token")}
        const res =http.post("/oauth/updateLoginState",data)
        return res
    },
    test(params){
        return http.get("/oauth/test",params)
    },
    getListAPI(params){
       return http.get(`${resquest}/getList.json`,params)
   },
    postFormAPI(params){
       return http.post(`${resquest}/postForm.json`,params)
   },
    putSomeAPI(params){
       return http.put(`${resquest}/putSome.json`,params)
   },
    deleteListAPI(params){
       return http.delete(`${resquest}/deleteList.json`,params)
   }

}


